from ultralytics import YOLO

# Load a model
model = YOLO("/root/yolov8-SAR/runs/obb/train4/weights/best.pt")

# Customize validation settings
validation_results = model.val(data='SAR.yaml', imgsz=1024, batch=128, conf=0.25, iou=0.6, device="0")
# print(validation_results.box.map)
print(validation_results)